<?php
if ( $lodging_photos->count() )
    $lodging_photo = sfConfig::get('app_photos_path_preview').$lodging_photos[0]->getLodgingPhoto();
else
    $lodging_photo = sfConfig::get('app_no_photo');
?>

<div class="lodging_image border_radius" style="background:url(<?php echo $lodging_photo ?>) no-repeat center;"></div>

<?php include_partial( 'lodging/summary', array( 'lodging' => $lodging ) ) ?>

<div class="lodging_summary_more">
    <a href="<?php echo url_for( '@description?lodging='.$lodging->getId() ) ?>">подробнее</a>
</div>
